import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./App.css";
//导入暗黑主题相关样式文件
import 'element-plus/theme-chalk/dark/css-vars.css'
//导入滑动验证码插件
import MakeitCaptcha from "makeit-captcha";
import "makeit-captcha/dist/captcha.min.css";
//导入vueuse动画插件
import { MotionPlugin } from '@vueuse/motion'
//在element-plus中引入图标
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
//在项目中使用滑块验证插件
app.use(MakeitCaptcha);
//在项目中使用动画插件
app.use(MotionPlugin);
app.use(store).use(router).mount("#app");

// 引入国际化插件
import i18n from "@/locales";
app.use(i18n);
